package com.toolkit.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author qdl
 * @descripton TODO中航技url
 * @Date 2023/4/21 15:44
 */
@Component
@ConfigurationProperties(prefix = "contemporarily")
@Data
public class EvectionTemporaryUrlUtil {
    private String baseUrl;
    private String account;
    private String password;

    /**
     * 临客同步接口
     * @return
     */
    public String getQueryUrl() {
        return baseUrl + "BlueSkyAccess/centerPar/queryCenterParVOByParas11";
    }

    /**
     * 创建临客信息
     * @return
     */
    public String createCenterPar() {
        return baseUrl + "BlueSkyAccess/centerPar/createCenterPar";
    }

    /**
     * 修改临客信息
     * @return
     */
    public String modifyCenterPar() {
        return baseUrl + "BlueSkyAccess/centerPar/modifyCenterPar";
    }

    /**
     * 删除临客信息
     * @return
     */
    public String deleteByParIdUrl(){
        return baseUrl + "BlueSkyAccess/centerPar/deleteCenterPar";
    }
}
